<template>
  <div class="app-container org">
    <!-- 左侧区域 -->
    <el-row style="width: 100%;" :gutter="5">
      <el-col :span="6">
        <el-card style="width: 100%">
          <el-tabs v-model="activityName" class="demo-tabs">
            <el-tab-pane label="未完成" name="first">
              <isComplete
                v-if="activityName == 'first'"
                @getSeqId="getSeqId"
                @getTableId="getTableId"
                :userStatus="0"
                ref="isCompleteRef"
              />
            </el-tab-pane>
            <el-tab-pane label="已完成" name="second">
              <isComplete
                v-if="activityName == 'second'"
                @getSeqId="getSeqId"
                @getTableId="getTableId"
                :userStatus="1"
                ref="isCompleteRef"
              />
            </el-tab-pane>
          </el-tabs>
        </el-card>
      </el-col>

      <!-- 右侧区域 -->
      <el-col :span="18">
        <comMy @define="define" ref="comMyRef"/>
      </el-col>
    </el-row>
  </div>
</template>

<script setup name="SampleGet">
import isComplete from "./components/isComplete";
import comMy from "@/views/sampleManage/sampleGet/components/comMy.vue";
const activityName = ref("first");
const isCompleteRef = ref(null);
const comMyRef = ref(null);

function getSeqId(val) {
  comMyRef.value.myId = val
  comMyRef.value.showTable()
}

function getTableId(val) {
  comMyRef.value.myId = ""
  comMyRef.value.tableId = val;
  comMyRef.value.showTable()
}

function define(val) {
  isCompleteRef.value.heightBright = val
  isCompleteRef.value.getList()
}
</script>
